from django import template
from ceph.ceph_manager import global_configs

register = template.Library()


@register.simple_tag
def get_global_config_tag():

    global_config_obj = global_configs.get_configs()
    if not global_config_obj:
        return None

    return global_config_obj